 <div class="fix-nav">
        <div class="fix-nav-wrap" >
            <a href="{ms:global.host/}?footerId=1" id="footer_ng1"   onclick="dochecked(1)">
                <i class="icon icon-home"></i>
                <p>首页</p>
            </a>
            <a href="{ms:global.url/}/155/index.html?footerId=2" id="footer_ng2"  onclick="dochecked(2)">
                <i class="icon icon-customize"></i>
                <p>定制</p>
            </a>
            <a href="{ms:global.url/}/154/index.html?footerId=3" id="footer_ng3" onclick="dochecked(3)">
                <i class="icon icon-laims"></i>
                <p>理赔</p>
            </a>
            <a href="{ms:global.url/}/176/index.html?footerId=4" id="footer_ng4" onclick="dochecked(4)">
                <i class="icon icon-mine"></i>
                <p>我的</p>
            </a>
        </div>
    </div>
<script type="text/javascript">
    	function dochecked(type){
			var count = 4;
			for(var i=1;i<=count;i++){
				var $toA = $('#footer_ng'+i);
				if(type == i){
					$toA.addClass('active');
				}else{
					$toA.removeClass('active');
				}
			}                     
		}
     
       function GetQueryString(name){
			var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
			var r = window.location.search.substr(1).match(reg);
			if(r!=null)return  unescape(r[2]); return null;
        }
		var idx= GetQueryString("footerId");
		if(!idx){
			idx = 1;
		}
		dochecked(idx);
</script>